#coding:utf-8
'''
Created on 2014年9月8日

@author: Administrator
'''
class HelloWorld():
    
    def say(self):
        print 'Hello'
        
h=HelloWorld()
print type(HelloWorld)
print type(h)


#动态定义class类
def saySomething(self,content):
    print content
    
People=type('People', (object,), dict(saySomething=saySomething))

p=People()
p.saySomething('I am Mr.Eko,how are you?')